﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Windows.Media;
using Blackbird.Core.Editable.Map;

namespace Blackbird.Studio.ViewModel.EntityViewModels {
    public class EditableMapLayerViewModel : EntityViewModel<EditableMapLayer> {
        public EditableMapLayerViewModel(EditableMapLayer model)
            : base(model) {
        }

        public IEnumerable<ImageSource> Tiles { get { return Model.Select(node => node != null ? node.ImageSource : null); } }

        public override EntityType EntityType {
            get { return EntityType.MapLayer; }
        }
    }
}